<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <style>
    .app {
      height: 3000px;
    }
  </style>
</head>
<body>
  <div class="app"></div>
  <!-- <script src="js/throttle.js"></script> -->
  <script src="js/debounce.js"></script>
  <script>
    /* var throttle = _.throttle(function(){
				console.log('hello throttle')
			}, 1500, {
				// leading: false // 阻止立即调用 1500毫秒后执行一次
				// trailing: false // 立即调用，不用等待
			})
      window.onscroll = throttle */
      var debounce = _.debounce(function(){
        console.log('hello debounce')
      }, 1500)
      window.onscroll = debounce
  </script>
</body>
</html>